lcEntXData Home

Allocates extra data buffer inside of entity.

 BOOL lcEntXData (
   HANDLE hEntity,
   int Id,
   int Flags,
   int nBytes
 );

Parameters
hEntity
  Handle to a graphic object.
Id
  Application specific identifier of the extra data (entity property LC_PROP_ENT_XDATAID).
The value varies from 0 to 10'000
Flags
  Application specific flags (entity property LC_PROP_ENT_XDATAFLAGS)
nBytes
  Size of data buffer, in bytes (entity property LC_PROP_ENT_XDATASIZE)

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

Remarks

  After buffer is allocated, you can get its memory pointer by LC_PROP_ENT_XDATA, and read/write the data using this pointer.

See Also

  lcXDataBegin,   lcXDataEnd,   lcXDataClear,   lcXDataSet

Code sample